package com.huntech.log.mapper;

import com.huntech.log.domain.LogRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LogMapper {

    /**
     * 创建表并插入数据
     */
    void createAndInsertBatch(String serverName, List<LogRecord> logRecords);

    List<LogRecord> selectLogByTimeAndLevel(@Param("startTime") String startTime,
                                            @Param("endTime") String endTime,
                                            @Param("logLevel") String logLevel);
}
